package com.diors.game.engine.network;

import com.diors.commons.log.DiorsLogger;
import com.diors.commons.network.DiorsConnFactory;
import com.diors.commons.network.DiorsConnection;

/**
 * 游戏连接工厂
 * @author	darren.ouyang
 * @data	2013-9-10
 */
public class GameClientFactory extends DiorsConnFactory
{

	private final static DiorsLogger log = DiorsLogger.getLogger(GameClientFactory.class);
	
	@Override
	protected GameClient createConnection() 
	{
		GameClient client = new GameClient();
		return client;
	}

	@Override
	protected void afterCreateConn (DiorsConnection client)
	{
		log.info(new StringBuilder("有新的游戏连接:").append(client.getIP()).toString());
	}
}
